import { User } from "../user/type"

export type Login = {
    username: string,
    password: string, // 密码
    rememberMe: boolean, // 记住我
    captcha: Captcha, // 验证码
}

export type Captcha = {
    captchaBase64: string,
    captchaKey: string,
    captchaCode: string,
}

export type LoginResult = {
    token: Token,
}

export type Register = {
    user: User,
    captcha: Captcha
}

export type Token = {
    header: string,
    prefix: string,
    content: string,
}